shared variables造句
例句與造句
- Maintain a shared variable across all test iterations in a load test
在負載測試中的所有測試迭代間維護一個共享變量。 - Locks around shared variables allow java threads to quickly and easily communicate and synchronize
給共享變量上鎖就使得java線程能夠快速方便地通信和同步。 - Some very strange things can happen if you fail to synchronize when accessing shared variables
如果在訪問共享變量的時候沒有同步的話,就會發(fā)生一些奇怪的事情。 - You will be able to share variables among the scripted action script and the prefix and suffix scripts
可以在scripted action腳本與前綴腳本和后綴腳本間共享變量。 - In the preceding example , the compiler generates a warning message both times the code accesses the shared variable
在前面的示例中,編譯器在代碼通過實例訪問共享變量 - It's difficult to find shared variables in a sentence. 用shared variables造句挺難的
- Volatile variables can also be used to store shared variables at a lower cost than that of synchronization , but they have limitations
還可以使用可變變量來以比同步更低的成本存儲共享變量,但它們有局限性。 - A shared variable or event is stored in memory only once , no matter how many or few instances you create of its class or structure
共享變量或事件只能在內存中存儲一次,而無論您創(chuàng)建多少個它的類或結構的實例。 - Unfortunately , this situation is a common use case for volatile - using a volatile field as a " guard " to indicate that a set of shared variables had been initialized
不幸地,這是volatile常見用例用一個volatile字段作為“守護”表明已經(jīng)初始化了一組共享變量。 - In particular , nearly every modern processor has instructions for updating shared variables in a way that can either detect or prevent concurrent access from other processors
特別是,幾乎每個現(xiàn)代處理器都有通過可以檢測或阻止其他處理器的并發(fā)訪問的方式來更新共享變量的指令。 - Developers may find use for atomic variables directly as a higher - performance replacement for shared counters , sequence number generators , and other independent shared variables that otherwise would have to be protected by synchronization
開發(fā)人員可以直接將原子變量用作共享計數(shù)器、序號生成器和其他獨立共享變量的高性能替代,否則必須通過同步保護這些變量。 - The combination of mutual exclusion and memory barriers means that as long as programs follow the correct synchronization rules that is , synchronize whenever writing a variable that may next be read by another thread or when reading a variable that may have been last written by another thread , each thread will see the correct value of any shared variables it uses
互斥獨占和內存壁壘結合使用意味著只要您在程序設計的時候遵循正確的同步法則(也就是說,每當寫一個后面可能被其他線程訪問的變量,或者讀取一個可能最后被另一個線程修改的變量時,都要使用同步) ,每個線程都會得到它所使用的共享變量的正確的值。 - In this paper , we propose a strategy for selecting synchronization sequences from java multi - thread program based on the analyzing of reading and writing on shared variable , and implemented a deterministic testing framework of java multi - thread program by using the dynamic proxy class . a reachability testing system of java multi - thread program is constructed by the strategy and the deterministic testing framework
本文提出了一種基于共享變量讀寫操作分析的java多線程程序同步序列生成策略,采用動態(tài)代理類proxy實現(xiàn)了java多線程程序確定性測試框架系統(tǒng),從而實現(xiàn)了一個java多線程可達性測試系統(tǒng)。